package com.vids.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vids.model.entity.SystemTime;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ly
 */
public interface SystemTimeMapper extends BaseMapper<SystemTime> {
    SystemTime findByVIIDServerID(String deviceID);

    @Transactional
    void updateByVIIDServerID(@Param("deviceID") String viidServerId, @Param("date") Date date);
}
